﻿// code03030300.cpp : 向量vector
// 对象的索引
#include <iostream>
#include <vector>
using namespace std;
//一组成绩数列，统计分数段
int main()
{
    cout << "请输入成绩数列" << endl;
    vector<unsigned> scores(11,0);
    vector<unsigned> grades;
    unsigned grade;
    while (cin>>grade)
    {
        
	    if (grade<=100)
	    {
            grades.push_back(grade);
            ++scores[grade / 10];
	    }
    }
    for (auto score : scores)
    {
        cout << score << " ";
    }
    cout << endl;
    return 0;

}

